
package jp.co.sansou.android.atnd.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import jp.co.sansou.android.atnd.R;

public class ActMainMenu extends Activity {

    private Button btnSearch;

    private Button btnRegAtndInfo;

    private View.OnClickListener lsnrBtnSearch = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent = new Intent(ActMainMenu.this, ActAtndSearch.class);
            startActivity(intent);
        }
    };

    private View.OnClickListener lsnrBtnRegAtndInfo = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent = new Intent(ActMainMenu.this, ActAtndRegList.class);
            startActivity(intent);
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.main_menu);

        btnSearch = (Button) findViewById(R.id.btn_search);
        btnRegAtndInfo = (Button) findViewById(R.id.btn_reg_atnd_info);

        btnSearch.setOnClickListener(lsnrBtnSearch);
        btnRegAtndInfo.setOnClickListener(lsnrBtnRegAtndInfo);
    }
}
